﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DBA.Common;
using DBA.Data;
using System.Data;
namespace DBA.Web
{
    public partial class LogOut : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Session.Abandon();
                Session.Clear();
                JsHelper.RegisterStartupScript(this, "logOut()");
            }
            //string strSelect = "select * from sys_systemfunction ";
            //Data.ADO.DataAccessLibrary dal = new Data.ADO.DataAccessLibrary();
            //DataTable dt = dal.ExecuteFillDataTable(strSelect);
            //string strOut = "";
            //foreach (DataRow dr in dt.Rows) 
            //{
            //    strOut += "insert into sys_systemfunction values('" + dr["FuncID"].ToString() + "','" + dr["FuncName"].ToString() + "','" + dr["ParentFuncID"].ToString() + "','" + dr["BelongSystem"].ToString() + "','" + dr["FuncType"].ToString() + "','" + dr["FuncUrl"].ToString() + "','" + dr["FuncRemark"].ToString() + "') </br>";
            //}

            //Label1.Text = strOut;
            
        }
    }
}